package com.demo.base.duty.filter;

import com.demo.base.duty.AbstractHandler;
import lombok.extern.slf4j.Slf4j;
import org.apache.catalina.connector.Request;
import org.apache.catalina.connector.Response;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * @author : YU.TAN
 * @date : 2021/10/28 13:58
 *  每个对象差异化处理
 * 责任链上，每个对象的差异化处理
 * @Order(1)//顺序排第1，最先校验
 */
@Component
@Order(1)
@Slf4j
public class CheckParamFilterObject extends AbstractHandler {


    @Override
   public boolean doFilter(Request request, Response response) {
        System.out.println("非空参数检查");
        log.info("非空参数检查！日志");
        return true;
    }
}
